package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_5 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity5);
        Button bt11=(Button)findViewById(R.id.bt11);
        Button bt12=(Button)findViewById(R.id.bt12);
        bt11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name6","如电视看到的那样感谢所有人:让人觉得你是节目安排的不再支持");
                editor.commit();
                Intent intent11=new Intent();
                intent11.setClass(Star_5.this,Star_16.class);
                startActivity(intent11);
            }
        });
        bt12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name6","草草应对,真诚打动了人 ，但也有参赛选手质疑你实力，你");
                editor.commit();
                Intent intent12=new Intent();
                intent12.setClass(Star_5.this,Star_6.class);
                startActivity(intent12);
            }
        });
    }
}
